<?php
/**
 * @version $Id: joomla.php 4097 2006-06-21 18:58:22Z stingrey $
 * @package Joomla
 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
define( '_JOS_CACHE_INCLUDED', 1 );

require_once 'Cache/Lite/Function.php';


class JCache_Lite_Function
{
    /** @var object internal aggregation to the Cache */
    var $_cache = null;

    function JCache_Lite_Function($options = array(NULL))
    {
        $this->_cache = new Cache_Lite_Function( $options );
    }

    function call()
    {
        $arguments = func_get_args();

        $ret = call_user_func_array(array($this->_cache, 'call'), $arguments);
        return $ret;
    }

    function clean($group = false)
    {
        return  $this->_cache->clean( $group );
    }
}